package pattern.abstractfactory;

public class Foodaholic {
    public void eat(KitchenFactory factory){
        System.out.println("A foodaholic is eating "+ factory.getFood().getFoodName()
                + " with " + factory.getTableWare().getToolName() );
    }
    public static void main(String[] args) {
        Foodaholic fh = new Foodaholic();
        KitchenFactory kf = new BKitchen();
        fh.eat(kf);
    }
}
